package com.xyb.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CourseCommentVo {
    private Long commentId;
    private Long courseId;

    private CourseComment.UserInfo userInfo;

    private String content;         //评论内容


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern="yyyy-MM-dd hh:mm",timezone = "GMT+8")
    private String createdDateTime;

    private int likeNum;            //喜欢数
    private int unlikeNum;          //不喜欢数

    private boolean like;
    private boolean unlike;
}
